home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr44 / xlib06p1.zip / XPOLYGON.H < prev    next >
C/C++ Source or Header  |  1994-12-20  |  1KB  |  60 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XPOLYGON - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XPOLYGON_H_
  22. #define _XPOLYGON_H_
  23.  
  24.  
  25. typedef struct {
  26.   int X;
  27.   int Y;
  28. } far VERTEX;
  29.  
  30. /* FUNCTIONS =========================================================== */
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. void cdecl x_triangle(     /* Draw a triangle */
  37.          int x0,
  38.          int y0,
  39.          int x1,
  40.          int y1,
  41.          int x2,
  42.          int y2,
  43.          WORD color,
  44.          WORD PageBase);
  45.  
  46. void cdecl x_polygon(     /* Draw a convex polygon */
  47.          VERTEX *vertices,
  48.          int  num_vertices,
  49.          WORD color,
  50.          WORD PageBase);
  51.  
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif
  58.  
  59.  
  60.